<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="${ctx}/js/jquery/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/captcha/jquery.motionCaptcha.0.2.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/js/captcha/jquery.motionCaptcha.0.2.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后台登录</title>
<script type="text/javascript">
	function onBodyLoad(){
		$("#loginForm").motionCaptcha({});
		var serverMsg = "${msg}";
		if(serverMsg)alert(serverMsg);
		var imgPath = "${ctx}/themes/shareResources/images/";
		$("#submit").click(function(){
			if(!$("input[name=userName]").val()){
				alert("用户名不能为空！");
				return false;
			}else if(!$("input[name=userPW]").val()){
				alert("密码不能为空！");
				return false;
			}
		});
		$("input[type=image]").hover(function(){
			this.src = imgPath + this.name + "L.gif";
		},function(){
			this.src = imgPath + this.name + ".gif";
		});
	};
</script>
</head>
<body style="background-color: #CFE4F9; margin: 0px auto;" onload="onBodyLoad();">
	<form action="loginingController.do?method=login" method="post" name="loginForm" id="loginForm">
		<div style="margin-left:auto;margin-right:auto;position:relative;top:200px;background-image:url(${ctx}/themes/shareResources/images/loginWindow.jpg); width:420px; height:250px; font-size:12px; font:bold;">
			<div style="position: absolute; top: 90px; left: 70px;">
				<table align="center">
					<tr>
						<td><font color="#FFFFFF" style="font-weight: bolder">账号：</font></td>
						<td><input type="text" name="userName" style="width: 170px" value="admin"/>
						</td><td></td>
					</tr>
					<tr>
						<td><font color="#FFFFFF" style="font-weight: bolder">密码：</font></td>
						<td><input type="password" name="userPW" style="width: 170px" value="admin"/>
						</td><td></td>
					</tr>
					<tr>
						<td colspan="2"></td>
						<td><input disabled="disabled" type="submit" id="submit" value="登录" style="float: right;">
						</td>
					</tr>
					<tr>
				</table>
			</div>
		</div>
		<div style="margin-top: 200px" align="center"><CANVAS id="mc-canvas"></CANVAS></div>
	</form>
</body>
</html>